package com.ncmx.lmax.engine.essentials;

public class Trade {
	
	
	private final Integer tradeId;
   private final String symbol;

	private final String buyOrderId;
    private final String buyBroker;
    private final String sellOrderId;
    private final String sellBroker;
    private final int quantity;
    private final double price;



    public Trade(Integer tradeId,String buyOrderId, final String buyBroker, String sellOrderId, final String sellBroker, final int quantity, final double price,String symbol) {
        this.tradeId=tradeId;
    	this.buyOrderId = buyOrderId;
        this.buyBroker = buyBroker;
        this.sellOrderId = sellOrderId;
        this.sellBroker = sellBroker;
        this.price = price;
        this.quantity = quantity;
        this.symbol=symbol;
    }

    
    public String getSymbol() {
		return symbol;
	}


	public Integer getTradeId() {
		return tradeId;
	}
	public String getSellBroker() {
        return sellBroker;
    }

    public String getBuyBroker() {
        return buyBroker;
    }

    public int getQuantity() {
        return quantity;
    }

    public double getPrice() {
        return price;
    }

    public String getBuyOrderId() {
        return buyOrderId;
    }

    public String getSellOrderId() {
        return sellOrderId;
    }
    
    @Override
	public String toString() {
		return "Trade [buyOrderId=" + buyOrderId + ", buyBroker=" + buyBroker
				+ ", sellOrderId=" + sellOrderId + ", sellBroker=" + sellBroker
				+ ", quantity=" + quantity + ", price=" + price + "]";
	}
}
